

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title><?php echo $title . "Password Changer" ?></title>
</head>

<body>
<div align="center"><form action="passwordchanger.php" method="post">
Account Name:<br /><input type="text" name="account" /> <br />
Old Password:<br /><input type="password" name="oldpass" /><br />
New Password:<br /><input type="password" name="newpass" /><br />
Confirm Password:<br /><input type="password" name="confnewpass" /><br />
<input type="submit" value="Submit" />
</form></div>
<?php include ('config.php');
$account = $_POST['account'];
$oldpass = $_POST['oldpass'];
$newpass = $_POST['newpass'];
$conf_newpass = $_POST['confnewpass'];
$conn = mysql_connect( $logon_host , $logon_user , $logon_pass);
if (isset($_POST['submit']))
    {
        if (empty($_POST['account']) || empty($_POST['oldpass']) ||
            empty($_POST['newpass']) || empty($_POST['confnewpass']))
            {
            echo "You did not fill all the necesary fields.";
                exit;
            }
        if ($newpass != $conf_newpass)
            {
            echo "Sorry the passwords do not match!";
                exit;
            }
?>

</body>

</html>